package com.dubbo.server.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MessageDetailVo {

    private String id; //编号
    private String nickname; //作者昵称
    private Integer userId;//作者ID
    private String userLogo;//作者头像
    private Long createDate;//发布日期
    private String text;//正文
    private String[] medias; //图片列表
    private Integer state;//审核状态
    private Integer topState;//置顶状态
    private Integer commentCount;//评论数
    private Integer likeCount;//点赞数
    private Integer reportCount;//举报数
    private Integer forwardingCount;//转发数


    public void setCreateDate(Date created) {
        long time = created.getTime();
        this.createDate = time;
    }
}
